<{include file="admin/header.html"}>
<{include file="admin/left.html"}>

<form id="metasform" name="metasform" method="post" action="<{$formUrl}>">
<fieldset><legend><{$tpl_title}></legend>

<div class="input_field">
	<label for="parent">分类: </label>
	<select class="dropdown" name="parent" datatype="*" nullmsg="请选择分类！">
        <option value="0">无(作为一级分类)</option>
		<{foreach from=$results item=one}>
		<option value="<{$one.mid}>" <{if $one.mid == $parentId}> selected="selected" <{/if}>><{$one.fulltitle}></option>
		<{/foreach}>
	</select>
</div>

<div class="input_field">
	<label for="name">分类名称: </label>
	<input type="text" value="" name="name" class="mediumfield" datatype="s2-18" nullmsg="请填写分类名称！" errormsg="分类名称至少2个字符,最多18个字符！" />
	<span class="form_line"><input type="text" name="sort" value="" class="tinyfield" />排序</span>
	<span class="form_line"><input name="status" type="checkbox" id="status" value="1" checked="checked" />显示</span>
</div>

<div class="input_field">
	<label for="slug">缩略名: </label>
	<input type="text" value="" name="slug" class="mediumfield" />
</div>

<div class="input_field">
	<label for="domain">域名: </label>
	<input type="text" value="" name="domain" class="mediumfield" />
</div>

<div class="input_field">
	<label for="thumb">缩略图: </label>
	<input type="text" id="thumb" value="" name="thumb" class="bigfield" /><input type="button" id="thumbs" value="选择图片" />
</div>

<div class="input_field">
	<label for="keywords">关键字: </label>
	<input type="text" value="" name="keywords" class="bigfield" />
	<span class="field_desc">多个关键字请用半角,分割，限200字符</span>
</div>

<div class="input_field">
	<label for="description">描述: </label>
	<textarea name="description" rows="2" cols="50"></textarea>
	<span class="field_desc">限200字符</span>
</div>

<div class="input_field no_margin_bottom">
	<label for="submit">&nbsp;</label>
	<input type="submit" value="提交" class="submit">
</div>
</fieldset>
</form>
<{include file="admin/footer.html"}>